package {
	
	import org.flixel.*;
	
	public class MenuState extends FlxState {
		
		private var start:FlxButton;
		private var titleText:FlxText;
		
		public function MenuState() {
		}
		
		override public function create():void {
			titleText = new FlxText(10, 100, FlxG.width - 19, "Dream Catcher");
			titleText.alignment = "center";
			titleText.size = 50;
			FlxG.mouse.show();
			start = new FlxButton(FlxG.width / 2 - 50 , FlxG.height / 2, "<<Start>>", startGame);
			
			add(start);
			add(titleText);
			super.create();
			
		}
		
		private function startGame():void {
			//FlxG.mouse.hide();
			FlxG.switchState(new DifficultySettingState);
		}
		
		
	}
	
	
}